<h1>Operazioni</h1>
<%= link_to 'Nuova operazione', new_operation_path %>
<br /><br />
<p id="message"></p>
<table id="table">
  <tr>
		<th>Descrizione</th>
		<th colspan="2">Comandi</th>
  </tr>

<% for operation in @operations %>
  <tr class="<%= cycle("even", "odd") %>">
    <td><%= operation.description %></td>
    <td><%= link_to image_tag("edit.png", :alt => "edit"), edit_operation_path(operation) %></td>
    <td><%= link_to image_tag("delete.png", :alt => "delete"), operation, :confirm => 'Sei sicuro?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

